package biolabs.util

import biolabs.space._

object Predef {
	type Int2 = Discrete2DPosition
	type Int3 = Discrete3DPosition
	type Real2 = Continuous2DPosition
	type Real3 = Continuous3DPosition

	implicit def tuple2pos(t: (Int, Int)) = new Int2(t._1, t._2)
	implicit def tuple2pos(t: (Double, Double)) = new Real2(t._1, t._2)
	implicit def tuple2pos(t: (Int, Int, Int)) = new Int3(t._1, t._2, t._3)
	implicit def tuple2pos(t: (Double, Double, Double)) = new Real3(t._1, t._2, t._3)
}